#ifndef MODBUSWIG_H
#define MODBUSWIG_H

#include <QWidget>
#include "globalval.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QDebug>
#include <QMessageBox>
#include <QDateTime>
#include "qcustomplot.h"

namespace Ui {
class ModbusWig;
}

class ModbusWig : public QWidget
{
    Q_OBJECT

public:
    explicit ModbusWig(QWidget *parent = 0);
    ~ModbusWig();

private:
    Ui::ModbusWig *ui;
    QCustomPlot *customPlot;

public slots:
    void clickSendTmpCommandSlot();
    void clickSendHumCommandSlot();
    void clickSendCo2CommandSlot();

    void handleMqttMessage(const QByteArray &message);
};

#endif // MODBUSWIG_H
